using System;
using System.Collections.Generic;
using System.Text;

namespace XProject.Entity
{
   public class Account
    {
        int id;        
        string username;
        string password;
        int role;
        Person person;
       string personImage;
        public Account()
        {
            id = -1;
            username = "";
            password = "";
            person = new Person();
            personImage = "";
        }
       public Account(string _username, string _password):this()
       {
           this.username = _username;
           this.password = _password;
       }
        #region properties
        /// <summary>
        /// Get, set id of the account
        /// </summary>
        public int AccountID
        {
            get { return id; }
            set { id = value; }
        }
        /// <summary>
        /// Get, set username
        /// </summary>
        public string Username
        {
            get { return username; }
            set { username = value; }
        }
        /// <summary>
        /// Get, set password of the account
        /// </summary>
        public string Password
        {
            get { return password; }
            set { password = value; }
        }
        /// <summary>
        /// Get, set role of the account
        /// </summary>
        public int Role
        {
            get { return role; }
            set { role = value; }
        }
        /// <summary>
        /// Get, set person information whose own the account
        /// </summary>
        public Person Person
        {
            get { return person; }
            set { person = value; }
        }
       public string PersonImage
       {
           get { return personImage; }
           set { personImage = value; }
       }
        #endregion

    }
}
